package com.music.common.dao;

import java.util.List;

import com.music.common.entity.Media;
import com.music.common.errorhandler.DaoException;

public interface IMediaDetails {

	/**
	 * @param userName
	 * @return
	 * @throws DaoException
	 * @throws Exception
	 */
	public List<Media> getAllMediaDetailByUserName(String userName) throws DaoException;
	
	public Integer getMediaCounter() throws DaoException;
	
	/**
	 * @param media
	 */
	public void save(Media media);

	/**
	 * @param media
	 */
	public void update(Media media);

	/**
	 * @param media
	 */
	public void delete(Media media);
}
